#include <stdio.h>
#include <math.h>
void print_bin_simple(long number){
    int bit = sizeof(int) * 8;
    int i;
    int status = 0;
    for(i = bit - 1; i >= 0; i--){
        int bin = (number & (1 << i)) >> i;
        if(bin == 1) status = 1;
        if(status == 1) printf("%d", bin);
    }
    printf("\n");
}

int main(){
    long a = 0xffffffff;
    
    int b=a;
    printf("a=%d\n",a);

    printf("b=%d\n",b);

    print_bin_simple(a);
    print_bin_simple(b);
    char c='b'+b;
    printf("c=%d",c);

    return 0;
}